package ErJiLianDong;
              import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Scanner;

    public class Province {

        static Scanner scanner = new Scanner(System.in);

        public static void main(String[] args) {
            System.out.println("云南  黑龙江 上海  吉林  天津  河北  重庆  北京");
            System.out.println("请选择你所在的省份：");


            while (true) {


                HashMap<String, ArrayList<String>> objectObjectHashMap = new HashMap<>();

                ArrayList<String> list = new ArrayList<>();
                list.add("昆明，曲靖，玉溪，保山，昭通，丽江，普洱，临沧");
                objectObjectHashMap.put("云南", list);
                String next = scanner.next();
                ArrayList<String> strings = objectObjectHashMap.get(next);
                System.out.println(strings);
                System.out.println("请选择你所在的城市：");

                HashMap<String, ArrayList<String>> objectObjectHashMap1 = new HashMap<>();
                ArrayList<String> list1 = new ArrayList<>();
                list1.add("信息登记完毕！");
                objectObjectHashMap1.put("昆明", list1);
                String next1 = scanner.next();
                ArrayList<String> strings1 = objectObjectHashMap1.get(next1);
                System.out.println(strings1);
            }


        }
    }

